<?php

class Hash {

    /**
     * 
     * @param string $data The data to encode
     * @return string The hashed data
     */
    public static function create($data) {
        $context = hash_init('md5', HASH_HMAC, HASH_KEY);
        hash_update($context, $data);
        return hash_final($context);
    }

}
